<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ include file="/common/taglibs.jsp"%>

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
	<title>空调信息增修</title>
	<%@ include file="/common/util.jsp"%>
	<%@ include file="/common/meta.jsp" %>
	<script src="${cdnctx}/dep/artDialog/jquery.artDialog.js?skin=default"></script>
	<style type="text/css">
	.ms-container{
		width:668px;
	}
	.etypeh{
		background-color:#08c;
		color:white;
	}
	</style>
	<script type="text/javascript">
	//Form 验证
	$(document).ready(function() {
		$("#deviceAirForm").validate({
			rules: {
				'aircode': {
					required: true
				},
				'airname': {
					required: true
				},
				'power': {
					required: true,
					digits: true
				}
			},
			messages: {
				'aircode': {
					required: "空调番号"
				},
				'airname': {
					required: "空调名称"
				},
				'power': {
					required: "功率",
					digits: "请输入合法的番号格式"
				}
			}
		});
	});
	//返回
	function goback(){
		self.location="${cdnctx}/systemDeviceAir/deviceAirList.shtml?";	
	}
</script>
</head>

<body class="main" >
<div class="-frame -style -luster" id="css_container">

    <!--首页框架页眉部分↓-->
		<%@ include file="/WEB-INF/pages/inc/header.jsp"%>
		<!--首页框架页眉部分↑-->

		<div class="content">
			<!-- Left导航菜单◎开始 -->
			<%@ include file="/WEB-INF/pages/inc/leftmenu.jsp"%>
			<!-- Left导航菜单◎结束 -->
			    <div class="main-mid">
			        <div class="pos">
			        	<img src="${cdnctx}/src/index/img/index.png">
			        	<a href="<%--${cdnctx}/system/systemMenu.shtml--%>">系统管理  ></a>
			        	<a href="${cdnctx}/systemDeviceAir/deviceAirList.shtml">空调能耗表管理 </a>>
			        	<a>
			        		<c:choose> 
				        		<c:when test="${deviceAir.id == null}">新增</c:when>
				        		<c:otherwise>编辑</c:otherwise>
				        	</c:choose>
				        </a>
			        </div>
			    <div class="css_contentDiv">
			    <form id="deviceAirForm" action="save.shtml" method="post">
			    	<input type="hidden" id="id" name="id" value="${deviceAir.id}" />
					<div class="searchDetailed  c-border-radius  b-box-shadow">
						<table width="800" align="center" border="0" cellpadding="0" cellspacing="0">
							<tr>
								<td class="mainText">
									<label class="formlabel"><font color="red">*</font>空调番号：</label>
								</td>
								<td>
									<input type="text" class="form_input large" name="aircode" id="aircode" value="${deviceAir.aircode}"/>
								</td>
							</tr>
							<tr>
								<td class="mainText">
									<label class="formlabel"><font color="red">*</font>空调名称：</label>
								</td>
								<td>
									<input type="text" class="form_input large" name="airname" id="airname" value="${deviceAir.airname}"/>
								</td>
							</tr>
							<tr>
								<td class="mainText">
									<label class="formlabel"><font color="red">*</font>功率：</label>
								</td>
								<td>
									<input type="text" class="form_input large" name="power" id="power" value="${deviceAir.power}"/>
								</td>
							</tr>
							<tr>
								<td class="mainText">
									<label class="formlabel">备注：</label>
								</td>
								<td>
									<input type="text" class="form_input large" name="memo" id="memo" value="${deviceAir.memo}"/>
								</td>
							</tr>
							<tr>
								<td></td>
								<td height="40">
									<input id="newbutton" type="submit" class="form_save" value="保&nbsp;存" />
									<input id="searchbutton" type="reset" class="form_cancle" onclick="goback();" value="返&nbsp;回">
								</td>
							</tr>
						</table>
					</div>
				</form>
			</div>	
	</div>
	</div>	
	<!--首页框架页尾部分↓-->
	<%@ include file="/WEB-INF/pages/inc/footer.jsp" %>
	<!--首页框架页尾部分↑-->

	
</div>				
</body>
</html>